package hhq.demo.fsexplore;

import com.alibaba.fastjson.JSONObject;

/**
 * 文件类实体
 */
public class FileEntity {
    String name;
    boolean isDir;
    long lastChange;
    
    public FileEntity(String n, boolean b, long t){
        name=n; isDir=b; lastChange=t;
    }    
    public JSONObject toJsonObject(){
        JSONObject jo = new JSONObject();
        jo.put("name", name);
        jo.put("isDir", isDir);
        jo.put("lastChange", lastChange);
        return jo;
    }
}